package com.wxy.gxs.springbootprojectday25.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

@Controller
@RequestMapping("/user")
public class UserController {

    @RequestMapping("/method01/{id}/input")
    @ResponseBody
   public Map methd01(@PathVariable("id") String id){
       HashMap<String, Object> resultMap = new HashMap<>();
        System.out.println("id : "+id);
       resultMap.put("message","超链接测试!!");

       return resultMap;

   }
   @RequestMapping("/")
   public String method02(){

        return "index2";
   }


}
